media: ite-cir: IR receiver stop working after receive overflow
authorSean Young <sean@mess.org>
Sun, 17 Oct 2021 12:01:15 +0000 (13:01 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Wed, 3 Nov 2021 14:35:31 +0000 (14:35 +0000)
commitff5c23ee2ee398162ae5b4369f703182f7c54c2c
tree5c484cc153fba5cee0373aa029c7b17a165ece29
parentb86f329e4c38df89442af8ea1073e20cdd72a1a7
media: ite-cir: IR receiver stop working after receive overflow

Origin: https://git.linuxtv.org/media_stage.git/commit/?id=fdc881783099c6343921ff017450831c8766d12a
Bug-Debian: https://bugs.debian.org/996672

On an Intel NUC6iSYK, no IR is reported after a receive overflow.

When a receiver overflow occurs, this condition is only cleared by
reading the fifo. Make sure we read anything in the fifo.

Fixes: 28c7afb07ccf ("media: ite-cir: check for receive overflow")
Suggested-by: Bryan Pass <bryan.pass@gmail.com>
Tested-by: Bryan Pass <bryan.pass@gmail.com>
Cc: stable@vger.kernel.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name media-ite-cir-IR-receiver-stop-working-after-receive.patch
drivers/media/rc/ite-cir.c